/**
 * 
 */
package com.nwpusp.controller.actions;

import com.nwpusp.model.GameModel;

/**
 * @author JustinCao
 *
 */
public class TickModelAction extends Action {

	int tickCnt = 0;
	
	public TickModelAction(int tickCnt) {
		this.tickCnt = tickCnt;
	}
	
	@Override
	public void Invoke(GameModel m) {
		boolean isReachEnd = m.getScenario().Tick(m.getPlayerManager().getLocalPlayer().getCh());
		if(isReachEnd) {
			m.reachEndLocal();
		}
	}

}
